{% extends 'layout/base.html' %}
{% block title %} 发布动态 {% endblock %}
{% block main %}
<h1 class="h1">发布动态</h1>
<div class="row">
    {% include 'user/layout/left_sidebar.html' %}
    <div class="col-md-9">
        <div class="container-fluid">
            {% from 'bootstrap/form.html' import render_form %}
            {{ render_form(form) }}
            <hr>
            <div class="posts">
                {% for post in posts %}
                <div class="border" style="margin-top:10px; word-break:break-all;">
                    <div style="color:#898989">
                        发布时间: {{ post.created_time }}
                    </div>
                    <p> {{ post.body }} </p>
                </div>
                {% endfor %}
            </div>
            <hr>
            {% from 'layout/next_page.html' import page_nav %}
            {{page_nav(pages, page, "user.post")}}
        </div>
    </div>
</div>
{% endblock %}